package top.qform.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import top.qform.po.Weight;

@ConfigurationProperties(prefix = "demo6")
@Configuration
@PropertySource(value = {"classpath:demo6.yml"}, encoding = "UTF-8", factory = YmlConfigFactory.class)
public class Demo6 {

    private Weight weight;

    public Weight getWeight() {
        return weight;
    }

    public void setWeight(Weight weight) {
        this.weight = weight;
    }
}
